عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false
مثلاً
string a="abc"; string b="ABC";
if(a==b) print("true");
else print("false");
حتى لو استخدمت الطريقة التالية للمقارنة if(a.Equals(b))
في كلا الطريقتين لن يتحقق الشرط وسيطبع false
لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد StringComparison
عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false
مثلاً
string a="abc"; string b="ABC";
if(a==b) print("true");
else print("false");
حتى لو استخدمت الطريقة التالية للمقارنة if(a.Equals(b))
في كلا الطريقتين لن يتحقق الشرط وسيطبع false
لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد StringComparison
The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.
Dump Scam in Leaked Telegram Chat
A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.